package com.sixmac.system.controller;

import com.sixmac.common.base.BaseController;
import com.sixmac.core.constant.Const;
import com.sixmac.core.plugins.dao.Md;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/main")
public class MainController extends BaseController {

    private static String LIST_APPUSERCOUNT = "appUser.appUserCount";
    private static String LIST_APPUSERCOUNTBYMOBILE = "appUser.appUserCountByMobile";
    private static String LIST_APPUSERCOUNTBYQQ = "appUser.appUserCountByQQ";
    private static String LIST_APPUSERCOUNTBYWEIXIN = "appUser.appUserCountByWeiXin";
    private static String LIST_APPUSERCOUNTBYWEIBO = "appUser.appUserCountByWeiBo";

    @GetMapping
    public String index(ModelMap mm) {
      /*  Integer appUserCount = Md.queryInt(LIST_APPUSERCOUNT, null);
        Integer appUserCountByMobile = Md.queryInt(LIST_APPUSERCOUNTBYMOBILE, null);
        Integer appUserCountByQQ = Md.queryInt(LIST_APPUSERCOUNTBYQQ, null);
        Integer appUserCountByWeiXin = Md.queryInt(LIST_APPUSERCOUNTBYWEIXIN, null);
        Integer appUserCountByWeiBo = Md.queryInt(LIST_APPUSERCOUNTBYWEIBO, null);
        mm.put("appUserCount", appUserCount);
        mm.put("appUserCountByMobile", appUserCountByMobile);
        mm.put("appUserCountByQQ", appUserCountByQQ);
        mm.put("appUserCountByWeiXin", appUserCountByWeiXin);
        mm.put("appUserCountByWeiBo", appUserCountByWeiBo);*/
        return "/main.html";
    }

}
